<template>
  <div id="app">
    <header>
      <img alt="Vue logo" src="./assets/logo.png" class="logo" />
      <nav>
        <router-link to="/" class="nav-link">Home</router-link>
        <router-link to="/helloworld" class="nav-link">Hello World</router-link>
      </nav>
    </header>
    <hr class="divider" />
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

.logo {
  width: 100px; /* 根据需要调整大小 */
  height: auto; /* 保持比例 */
}

.nav-link {
  margin: 0 15px; /* 添加间距 */
  text-decoration: none; /* 去掉下划线 */
  color: #42b983; /* 自定义链接颜色 */
}

.nav-link:hover {
  text-decoration: underline; /* 悬停时添加下划线 */
}

.divider {
  border: none; /* 去掉默认边框 */
  border-top: 1px solid #ccc; /* 自定义分隔线 */
  margin: 20px 0; /* 上下间距 */
}
</style>
